package cn.ibizlab.odoo.core.odoo_stock.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_stock.domain.Stock_picking_type;
import cn.ibizlab.odoo.core.odoo_stock.filter.Stock_picking_typeSearchContext;

/**
 * 实体[Stock_picking_type] 服务对象接口
 */

public interface IStock_picking_typeService{
     boolean remove(Integer id) ;
     boolean update(Stock_picking_type stock_picking_type) ;
     void createBatch(List<Stock_picking_type> stock_picking_types, int batchSize) ;
     void updateBatch(List<Stock_picking_type> stock_picking_types, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean create(Stock_picking_type stock_picking_type) ;
     Stock_picking_type get(Integer id) ;
     Stock_picking_type get(Stock_picking_type stock_picking_type) ;

    /**
     * 查询集合 默认查询
     */
    Page<Stock_picking_type> searchDefault(Stock_picking_typeSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Stock_picking_type> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_picking_type> selectByOdoo_write(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_picking_type> selectByOdoo_default_location_dest(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_picking_type> selectByOdoo_default_location_src(Integer id) ;

    /**
     * 根据拣货类型查询
     */
     Page<Stock_picking_type> selectByOdoo_return_picking_type(Integer id) ;

    /**
     * 根据仓库查询
     */
     Page<Stock_picking_type> selectByOdoo_warehouse(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Stock_picking_type convert2Domain(cn.ibizlab.odoo.core.client.model.Istock_picking_type model ,Stock_picking_type domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Istock_picking_type convert2Model(Stock_picking_type domain , cn.ibizlab.odoo.core.client.model.Istock_picking_type model);

}
